package com.jyy.prefabricated.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.dto.SubjectiveExcelDto;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class SubjectiveQuestionScoreData {

    /**
     * 身份证号码
     */
    @ExcelProperty(value = "身份证号码", index = 0)
    private String idCard;

    /**
     * 题目内容
     */
    @ExcelProperty(value = "题目内容", index = 1)
    private String questionName;
    /**
     * 得分
     */
    @ExcelProperty(value = "得分", index = 2)
    private Double subjectiveScore;

    /**
     * 考试开始时间
     */
    @ExcelProperty(value = "考试开始时间", index = 3)
    private String createTime;

    public SubjectiveExcelDto toSubjectiveExcelDto(){
        SubjectiveExcelDto subjectiveExcelDto =new SubjectiveExcelDto();
        subjectiveExcelDto.setIdCard(idCard);
        subjectiveExcelDto.setSubjectiveScore(subjectiveScore);
        subjectiveExcelDto.setQuestionName(questionName);
        subjectiveExcelDto.setCreateTime(createTime);
        return  subjectiveExcelDto;
    }

}
